from datasets import list_datasets, load_dataset, list_metrics, load_metric

# Print all the available datasets
print(list_datasets())
data = load_dataset('acronym_identification')
print(data)

data1 = data['train'][0]
print(data1)

# 特征提取
data2 = data['train'].features
print(data2)

# 数据集描述
data3 = data['train'].description
data4 = data['train'].citation
print(data3)
print(data4)

# 自定义数据集加载
data5 = load_dataset('csv', data_files='train.csv')
print(data5)
# 加载多个数据集
data6 = load_dataset('csv', data_files=['train.csv', 'test.csv'])
print(data6)